﻿/*
 * 创建者:  ideapadqiao\qiaojianhui
 * 邮件:    qiaojianhui@cont.com.cn
 * 功能描述: 
 * 历史记录: created by qiaojianhui 2012/2/26 16:41:37  
 *           
 */

using System.Windows.Forms;
using System.Drawing;

namespace oqis.gis.frame
{
    public abstract class BaseCommand : IBaseCommand
    {
        #region 类方法

        public BaseCommand() {

            Initialize();
        }

        /// <summary>
        /// 初始化控件
        /// </summary>
        public virtual void Initialize()
        {

        }

        /// <summary>
        /// 点击事件
        /// </summary>
        public virtual void OnClick() { }

        #endregion

        #region 属性

        /// <summary>
        /// 关联对象
        /// </summary>
        public virtual object Hook { get; set; }

        /// <summary>
        /// 控件是否可用
        /// </summary>
        public virtual bool Enable { get; set; }

        /// <summary>
        /// 按钮图片
        /// </summary>
        public virtual Image CommandImage { get; set; }

        /// <summary>
        /// 按钮名称
        /// </summary>
        public virtual string CommandText { get; set; }

        /// <summary>
        /// 按钮的提示
        /// </summary>
        public virtual string CommandToolTip { get; set; }

        /// <summary>
        /// 帮助项
        /// </summary>
        public virtual int HelpID { get; set; }

        /// <summary>
        /// 快捷键
        /// </summary>
        public virtual string ShortCut { get; set; }

        /// <summary>
        /// 可见性
        /// </summary>
        public virtual bool Visible { get; set; }

        #endregion
 
    }
}
